<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.sql.*" %>
<%
	Connection conn=null;

	String driver="oracle.jdbc.driver.OracleDriver";
	String url="jdbc:oracle:thin:@oracle.miraeis02.cafe24.com:1521:orcl";
	
	Boolean connect=false;
	try {
		Class.forName(driver);
		conn=DriverManager.getConnection(url, "miraeis02", "miraejikim02");
		
		connect=true;
		
		conn.close();
	} catch(Exception e) {
		connect=false;
		e.printStackTrace();
	}
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MVC1 Sample List</title>
</head>
<body>
<% if(connect==true){ %>
	연결되었습니다.
<% } else { %>
	연결에 실패하였습니다.
<% } %>
</body>
</html>